package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbc_field_school")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FieldSchoolModel {

    @TableId(type = IdType.AUTO)
    private int id;
    private String fieldCode;//专业编号
    private String fieldName;//专业名称
    private String fatherCode;//父级专业
    @TableField(exist = false)
    private List<FieldSchoolModel> sonList;//子类
}
